
export const getTimes = () => {
    const date = new Date();
    let year = padS(date.getFullYear());
    let month = padS(date.getMonth() + 1);
    let day = padS(date.getDate());
    let hour = padS(date.getHours());
    let minute = padS(date.getMinutes());
    let second = padS(date.getSeconds());
    return `${year}/${month}/${day} ${hour}:${minute}:${second}`
  }
  function padS(time) {
    return time < 10 ? String(time).padStart(2, '0') : time
  }